package com.zhu.tool_test.datastructure.queue;

import java.util.Queue;

/**
 * @program: tool_test
 * @description: 生产者
 * @author: ggBall
 * @create: 2021-03-03 16:11
 **/
public class Producer {

    private Queue queue;

    public Producer() {
    }

    public Producer(Queue queue) {
        this.queue = queue;
    }

    void send(String msg) {
        boolean add = queue.add(msg);
    }
}
